package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.ExcavationDataMapper;
import com.ruoyi.control.domain.ExcavationData;
import com.ruoyi.control.service.IExcavationDataService;

/**
 * 掘进数据实时Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-05
 */
@Service
public class ExcavationDataServiceImpl extends ServiceImpl<ExcavationDataMapper, ExcavationData> implements IExcavationDataService //修改
{
    @Autowired
    private ExcavationDataMapper excavationDataMapper;

    /**
     * 查询掘进数据实时
     * 
     * @param id 掘进数据实时主键
     * @return 掘进数据实时
     */
    @Override
    public ExcavationData selectExcavationDataById(String id)
    {
        return excavationDataMapper.selectExcavationDataById(id);
    }

    /**
     * 查询掘进数据实时列表
     * 
     * @param excavationData 掘进数据实时
     * @return 掘进数据实时
     */
    @Override
    public List<ExcavationData> selectExcavationDataList(ExcavationData excavationData)
    {
        return excavationDataMapper.selectExcavationDataList(excavationData);
    }

    /**
     * 新增掘进数据实时
     * 
     * @param excavationData 掘进数据实时
     * @return 结果
     */
    @Override
    public int insertExcavationData(ExcavationData excavationData)
    {
        return excavationDataMapper.insertExcavationData(excavationData);
    }

    /**
     * 修改掘进数据实时
     * 
     * @param excavationData 掘进数据实时
     * @return 结果
     */
    @Override
    public int updateExcavationData(ExcavationData excavationData)
    {
        excavationData.setUpdateTime(DateUtils.getNowDate());
        return excavationDataMapper.updateExcavationData(excavationData);
    }

    /**
     * 批量删除掘进数据实时
     * 
     * @param ids 需要删除的掘进数据实时主键
     * @return 结果
     */
    @Override
    public int deleteExcavationDataByIds(String[] ids)
    {
        return excavationDataMapper.deleteExcavationDataByIds(ids);
    }

    /**
     * 删除掘进数据实时信息
     * 
     * @param id 掘进数据实时主键
     * @return 结果
     */
    @Override
    public int deleteExcavationDataById(String id)
    {
        return excavationDataMapper.deleteExcavationDataById(id);
    }
}
